package com.alibaba.nacos.api.remote.response;

import com.alibaba.nacos.api.remote.Payload;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true)
public class Response
        implements Payload {
    int resultCode = ResponseCode.SUCCESS.getCode();
    int errorCode;
    String message;
    String requestId;

    public boolean isSuccess() {
        return resultCode == ResponseCode.SUCCESS.getCode();
    }
}
